import request from '@/plugins/axios'

// 查询流程分页
export function auditProcessPage(data) {
    return request({
        url: '/sys/auditProcess/page',
        method: 'post',
        data: data
    })
}

// 查询流程列表
export function auditProcessList(data) {
    return request({
        url: '/sys/auditProcess/list',
        method: 'post',
        data: data
    })
}

// 查询流程详细
export function auditProcessDetail(id) {
    const data = {
        id : id
    };
    return request({
        url: '/sys/auditProcess/detail',
        method: 'post',
        data
    })
}

export function auditProcessAdd(data) {
    return request({
        url: '/sys/auditProcess/add',
        method: 'post',
        data
    })
}

export function auditProcessUpdate(data) {
    return request({
        url: '/sys/auditProcess/update',
        method: 'post',
        data
    })
}

export function auditProcessDelete(id) {
    const data = {
        id : id
    };
    return request({
        url: '/sys/auditProcess/delete',
        method: 'post',
        data
    })
}
